package edu.ptu.springboot04.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import edu.ptu.springboot04.domain.create.ProductOfShoppingCart;
import edu.ptu.springboot04.domain.entity.ShoppingCart;

import java.util.List;

/**
 * @BelongsProject: springboot04
 * @BelongsPackage: edu.ptu.springboot04.mapper
 * @Author: HYJ
 * @CreateTime: 2025-03-21  22:14
 * @Description: TODO
 * @Version: 1.0
 */
public interface ShoppingCartMapper extends BaseMapper<ShoppingCart> {

    /**
     * 根据购物车ID集合查询关联商品信息
     *
     * @param shoppingCartIds 购物车ID列表
     * @return 包含商品基本信息和购物车关联数据的复合对象列表
     */
    List<ProductOfShoppingCart> listAllByShoppingCartIds(List<Integer> shoppingCartIds);

    int delByShoppingCartIds(List<Integer> shoppingCartIds);
}
